<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/25
 * Time: 10:53
 */

namespace app\common\controller;

use think\Db;
use think\Controller;
use think\Session;

class Base extends Controller
{
    public $member;
    public function __construct(){
        parent::__construct();
        $member_id = Session::get('member_id');
        $config = Db::table('config') -> where('id',1) -> find();
        $this -> member = Db::table('member') -> where('member_id',$member_id) -> find();

        $this->assign('member',$this -> member);
        $this->assign('config',$config);

    }

}